# n = [1, 2, 3]
# m = [4, 5, 6]
# res = n + m
# print(res)
# res2 = n * 3
# print(res2)
#
# dict1 = {"name": "Tom", "age": 18}
# print("name" in dict1)
# print("Tom" in dict1.values())
#
# list1 = [1,2,3]
# print(max(list1))


# # res = range(5,10)
# # print(res)
#
# # for i in range(0, 10, 2):
# #     print(i)
# #
# # res = list(range(10))
# # print(res)
# list1 = []
# for i in range(10):
#     list1.append(i)
# print(list1)
# n = ["a", "b", "v", "p", "你好"]
#
# for i in enumerate(n):
#     print(i)
#
# for i, j in enumerate(n):
#     print(f"当前元素是:{j},下标是:{i}")


str1 = "ndsonfiopwnfekokdsfojiosa"
# 打印出所有o的下标
for i, j in enumerate(str1):
    if j == "o":
        print(f"当前元素是:{j},下标是:{i}")
